﻿// admin.cpp: 实现文件
//

#include "pch.h"
#include "luntan.h"
#include "admin.h"
#include "afxdialogex.h"
#include"admin1.h"
#include"admin2.h"
#include"luntanDlg.h"


// admin 对话框

IMPLEMENT_DYNAMIC(admin, CDialogEx)

admin::admin(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_ADMIN, pParent)
{

}

admin::~admin()
{
}

void admin::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(admin, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON1, &admin::OnBnClickedButton1)
	ON_BN_CLICKED(IDC_BUTTON2, &admin::OnBnClickedButton2)
	ON_BN_CLICKED(IDC_BUTTON3, &admin::OnBnClickedButton3)
	ON_BN_CLICKED(IDC_BUTTON4, &admin::OnBnClickedButton4)
END_MESSAGE_MAP()


// admin 消息处理程序


void admin::OnBnClickedButton1()
{
	// TODO: 在此添加控件通知处理程序代码
	admin::OnOK();
	admin1 a;
	a.DoModal();
}


void admin::OnBnClickedButton2()
{
	// TODO: 在此添加控件通知处理程序代码
	admin::OnOK();
	admin2 a;
	a.DoModal();
}


void admin::OnBnClickedButton3()
{
	// TODO: 在此添加控件通知处理程序代码
	admin::OnOK();
}


void admin::OnBnClickedButton4()
{
	// TODO: 在此添加控件通知处理程序代码
	admin::OnOK();
	CluntanDlg a;
	a.DoModal();
}
